Crate fpdec_core

source ·
Expand description

Common constants and functions for crate fpdec.

For more information see fpdec.rs.

Re-exports

  • pub use parser::str_to_dec;
  • pub use powers_of_ten::checked_mul_pow_ten;
  • pub use powers_of_ten::mul_pow_ten;
  • pub use powers_of_ten::ten_pow;
  • pub use rounding::i128_div_rounded;
  • pub use rounding::i128_mul_div_ten_pow_rounded;
  • pub use rounding::i128_shifted_div_rounded;

Enums

  • An error which can be returned when parsing a decimal literal.
  • Enum representing the different methods used when rounding a number.

Constants

  • The maximum number of fractional decimal digits supported by Decimal.

Traits

  • Rounding a number to a given number of fractional digits.